import request from '../utils/request'

const CollectList = 'wx/collect/list' // 收藏列表
export function collectList (query) {
  return request({
    url: CollectList,
    method: 'get',
    params: query
  })
}
const CollectAddOrDelete = 'wx/collect/addordelete' // 添加或取消收藏
export function collectAddOrDelete (data) {
  return request({
    url: CollectAddOrDelete,
    method: 'post',
    data
  })
}
